package com.zhanghe.security.util;

import com.google.gson.Gson;

public class R {

    public Integer ret;

    public String message;

    public String token;

    public String refresh_token;

    public R(Integer ret) {
        this.ret = ret;
    }

    public R(Integer ret, String message) {
        this.ret = ret;
        this.message = message;
    }

    public R(String token, String refresh_token) {
        this.token = token;
        this.refresh_token = refresh_token;
    }

    public Integer getRet() {
        return ret;
    }

    public void setRet(Integer ret) {
        this.ret = ret;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}
